from PageLocators.Viplearn.viplearn_home_loc import VipLearnHomePageLocator as vl_loc

# 筛选老师数据， tab_loc：筛选项定位、tab_name：筛选项文本、check_select：勾选项文本、expect_teacher_name_loc：期望老师姓名定位、
                                                                            # expect_teacher_count：期望老师列表数据数量
search_tab_data = [
    {"tab_loc": vl_loc.be_from_tab_loc, "check_select": ['美国', '英国', '中国'],
     "tab_name": "来自", "expect_teacher_name_loc": vl_loc.teacher_name_loc, "expect_teacher_count": 5},
    {"tab_loc": vl_loc.course_type_tab_loc, "check_select": ['英语会话', '英语语法与词汇'],
     "tab_name": "课程类型", "expect_teacher_name_loc": vl_loc.teacher_name_loc, "expect_teacher_count": 4},
    {"tab_loc": vl_loc.schooltime_tab_loc,
     "check_select": ['00 - 04', '04 - 08', '08 - 12', '12 - 16', '16 - 20', '20 - 24'],
     "tab_name": "可上课时间", "expect_teacher_name_loc": vl_loc.teacher_name_MrGuo_loc, "expect_teacher_count": 1}
]

# 列表教师信息  loc：列表老师定位、remark：验证老师哪个信息， list_num：期望验证列表第几条数据
teacher_information_data = [
    {"loc": vl_loc.head_photo_mrguo_loc, "remark": "教师头像", "list_num": 1},
    {"loc": vl_loc.teacher_name_MrGuo_loc, "remark": "教师姓名", "list_num": 1},
    {"loc": vl_loc.list_teacher_from_loc, "remark": "教师来自哪里", "list_num": 1},
    {"loc": vl_loc.list_teacher_ProfessorCourse_loc, "remark": "教授课程", "list_num": 1},
    {"loc": vl_loc.list_teacher_hourly_loc, "remark": "每小时最低费用", "list_num": 1},
]

# 预约课程名称
courses_name = "Let's talk! English for Young Learners Let's talk!"
# 要选择的课时
lesson_name = "1个课时"
# 上课时间段
curriculum_time = "19:30-20:00"

# 预约记录页面  tab_loc：tab标签定位、img_doc：失败截图名称、card：预约记录列表定位，cards：预约记录列表父元素div定位、assert_msg：断言数据
reservation_record_data = [
    {"tab_loc": vl_loc.all_tab_loc, "img_doc": "点击预约记录tab-所有",
     "card": vl_loc.reservation_card_loc, "cards": vl_loc.reservation_cards_loc, "assert_msg": "试听课程/30min"},
    {"tab_loc": vl_loc.need_tab_loc, "img_doc": "点击预约记录tab-需要操作",
     "card": vl_loc.reservation_card_loc, "cards": vl_loc.reservation_cards_loc, "assert_msg": "试听课程/30min"},
    {"tab_loc": vl_loc.await_tab_loc, "img_doc": "点击预约记录tab-等待",
     "card": vl_loc.reservation_card_loc, "cards": vl_loc.reservation_cards_loc, "assert_msg": ""},
    {"tab_loc": vl_loc.upcoming_tab_loc, "img_doc": "点击预约记录tab-即将上课",
     "card": vl_loc.reservation_card_loc, "cards": vl_loc.reservation_cards_loc, "assert_msg": ""},
    {"tab_loc": vl_loc.perform_tab_loc, "img_doc": "点击预约记录tab-已完成",
     "card": vl_loc.reservation_card_loc, "cards": vl_loc.reservation_cards_loc, "assert_msg": "试听课程/30min"},
    {"tab_loc": vl_loc.cancel_tab_loc, "img_doc": "点击预约记录tab-已取消",
     "card": vl_loc.reservation_card_loc, "cards": vl_loc.reservation_cards_loc, "assert_msg": "英语/abc/60min"}
]
# 选中状态tab属性class属性值 bg-primary text-white

# 我的订单  tab_loc：列表标签， img_doc：失败截图名称， card：我的订单列表定位，cards：我的订单列表父元素div定位、assert_msg：断言数据
my_order_data = [
    {"tab_loc": vl_loc.all_tab_loc, "img_doc": "点击我的订单tab-所有",
     "card": vl_loc.order_card_loc, "cards": vl_loc.order_cards_loc, "assert_msg": "英语/Regular lessons/60min×10"},
    {"tab_loc": vl_loc.need_tab_loc, "img_doc": "点击我的订单tab-需要操作",
     "card": vl_loc.order_card_loc, "cards": vl_loc.order_cards_loc, "assert_msg": ""},
    {"tab_loc": vl_loc.await_tab_loc, "img_doc": "点击我的订单tab-等待",
     "card": vl_loc.order_card_loc, "cards": vl_loc.order_cards_loc, "assert_msg": ""},
    {"tab_loc": vl_loc.no_reservation_tab_loc, "img_doc": "点击我的订单tab-未预约",
     "card": vl_loc.order_card_loc, "cards": vl_loc.order_cards_loc, "assert_msg": "试听课程/30min×1"},
    {"tab_loc": vl_loc.perform_tab_loc, "img_doc": "点击我的订单tab-已完成",
     "card": vl_loc.order_card_loc, "cards": vl_loc.order_cards_loc, "assert_msg": "试听课程/30min×1"},
    {"tab_loc": vl_loc.terminate_tab_loc, "img_doc": "点击我的订单tab-已终止",
     "card": vl_loc.order_card_loc, "cards": vl_loc.order_cards_loc, "assert_msg": "Mr Guo"}
]
# 我的钱包-交易详情 option：搜索项， assert_msg：断言数据
deal_detail_data = [
    {"option": "购买点数", "assert_msg": "当前没有交易记录"},
    {"option": "购买课时包消耗点数", "assert_msg": "22041315161984643525"},
    {"option": "取消课时包返还收费点数", "assert_msg": "当前没有交易记录"},
    {"option": "取消课时包返还赠送点数", "assert_msg": "22011451636578785992001"},
    {"option": "邀请活动奖励点数", "assert_msg": "当前没有交易记录"},
]

# 我的钱包-交易详情  重置后断言数据
deal_detail_reset_assert_data = "22011451636578785992001"


# 我的主页
# 个人信息-用户名
pd_username_data = "test"
# 个人信息-邀请码
pd_invitation_code_data = "STSFQHV"
# 账号管理-电子邮箱
am_email_data = "yan****ghua@xdf.cn"
# 账号管理-手机号码
am_mobile_data = "+86  183****6220"

